<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProjectSearchPrint.aspx.cs" Inherits="ProjectSearchPrint" title="Project Monitoring System" culture="auto:en-US" uiculture="auto" meta:resourcekey="PageResource1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            &nbsp;<asp:ObjectDataSource ID="ODSSearchProject" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetSearchResult" TypeName="IPMS.BLL.SearchProject">
                <SelectParameters>
                    <asp:QueryStringParameter Name="Project" QueryStringField="ProjectCode" Type="String" />
                    <asp:QueryStringParameter Name="Status" QueryStringField="Status" Type="String" />
                    <asp:QueryStringParameter Name="Type" QueryStringField="Type" Type="String" />
                    <asp:QueryStringParameter Name="Agent" QueryStringField="Agent" Type="String" />
                    <asp:QueryStringParameter Name="Country" QueryStringField="Country" Type="String" />
                    <asp:QueryStringParameter Name="Client" QueryStringField="Client" Type="String" />
                    <asp:QueryStringParameter Name="ProjectTitle" QueryStringField="ProjectTitle" Type="String" />
                    <asp:QueryStringParameter Name="Applicant" QueryStringField="Applicant" Type="String" />
                    <asp:QueryStringParameter Name="Stage" QueryStringField="Stage" Type="String" />
                    <asp:QueryStringParameter Name="ResponsiblePerson" QueryStringField="ResponsiblePerson"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtStartDate" Name="StartingNextDueDate" PropertyName="Text"
                        Type="DateTime" />
                    <asp:ControlParameter ControlID="txtEndDate" Name="EndingNextDueDate" PropertyName="Text"
                        Type="DateTime" />
                    <asp:QueryStringParameter Name="Inventor" QueryStringField="Inventor" Type="String" />
                    <asp:QueryStringParameter Name="ProjectClass" QueryStringField="ProjectClass" Type="String" />
                    <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser"
                        Type="Int32" />
                    <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                        Type="String" />
                    <asp:QueryStringParameter Name="ProjectGroup" QueryStringField="ProjectGroup" Type="String" />
                    <asp:ControlParameter ControlID="txtUserName" Name="UserName" PropertyName="Text"
                        Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            &nbsp;
            <asp:Button ID="btnExport" runat="server" OnClick="btnExport_Click1" Text="Export" meta:resourcekey="btnExportResource1" /><br />
            <asp:GridView CssClass="Grid" ID="gvResults" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px"
                CellPadding="3" CellSpacing="2" DataSourceID="ODSSearchProject" meta:resourcekey="gvResultsResource1"
                Width="98%" OnRowDataBound="gvResults_RowDataBound">
                <FooterStyle CssClass="GridFooterStyle" BackColor="#F7DFB5" ForeColor="#8C4510" />
                <Columns>
                    <asp:BoundField DataField="ProjectCode" HeaderText="Project Code" meta:resourceKey="BoundFieldResource1">
                        <ItemStyle Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Client" HeaderText="Client" meta:resourceKey="BoundFieldResource2"
                        ReadOnly="True" />
                    <asp:BoundField DataField="Country" HeaderText="Country" meta:resourceKey="BoundFieldResource3"
                        ReadOnly="True" />
                    <asp:BoundField DataField="Type" HeaderText="Type" meta:resourceKey="BoundFieldResource4" />
                    <asp:BoundField DataField="Agent" HeaderText="Agent" meta:resourceKey="BoundFieldResource5"
                        ReadOnly="True" />
                    <asp:BoundField DataField="Title" HeaderText="Title" meta:resourceKey="BoundFieldResource6" />
                    <asp:BoundField DataField="Applicant" HeaderText="Applicant" meta:resourceKey="BoundFieldResource7" />
                    <asp:BoundField DataField="ResponsiblePerson" HeaderText="Responsible Person" meta:resourceKey="BoundFieldResource8"
                        ReadOnly="True" />
                    <asp:BoundField DataField="Status" HeaderText="Status" meta:resourceKey="BoundFieldResource9" />
                    <asp:BoundField DataField="Inventor" HeaderText="Inventor" meta:resourceKey="BoundFieldResource10" />
                    <asp:BoundField DataField="Stage" HeaderText="Stage" meta:resourcekey="BoundFieldResource11" />
                    <asp:BoundField DataField="NextDueDate" DataFormatString="{0:d}" HeaderText="Next Due Date"
                        HtmlEncode="False" meta:resourcekey="BoundFieldResource12" />
                    <asp:BoundField DataField="ProjectClass" HeaderText="Project Class" meta:resourcekey="BoundFieldResource13" />
                    <asp:BoundField DataField="Remark" HeaderText="Remark" meta:resourcekey="BoundFieldResource14" />
                </Columns>
                <RowStyle CssClass="GridRowStyle" BackColor="#FFF7E7" ForeColor="#8C4510" />
                <SelectedRowStyle CssClass="GridSelectedRowStyle" BackColor="#738A9C" Font-Bold="False" ForeColor="White" />
                <PagerStyle CssClass="GridPagerStyle" ForeColor="#8C4510" HorizontalAlign="Center" />
                <HeaderStyle CssClass="GridHeaderStyle" BackColor="DarkBlue" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
            <asp:TextBox ID="txtStartDate" runat="server" Visible="False" meta:resourcekey="txtStartDateResource1"></asp:TextBox>
            <asp:TextBox ID="txtEndDate" runat="server" Visible="False" meta:resourcekey="txtEndDateResource1"></asp:TextBox>
            <asp:TextBox ID="txtUserName" runat="server" Visible="False"></asp:TextBox></div>
    </form>
</body>
</html>
